{template header}
<div id="breadcrumb">
    <!-- breadcrumb starts-->
    <div class="container">
        <div class="one-half">
            <h4>{$cat[catname]}</h4>
        </div>
        <div class="one-half">
            <nav id="breadcrumbs">
                <!--breadcrumb nav starts-->
                <ul>
                    <li>您当前位置：</li>
                    <li><a  href="{SITE_PATH}">首页</a> > {catpos($catid, ' &gt;&nbsp;&nbsp;')}</li>
                </ul>
            </nav>
            <!--breadcrumb nav ends -->
        </div>
    </div>
</div>

<div id="content">
<div class="container">
    <div class="one">
        <div class="three-fourth">

            <div class="blog-post">
                <div class="permalink">
                    <h4>{$title}</h4>
                </div>
                <ul class="post-meta">
                    <li><i class="icon-time"></i> {date("Y-m-d H:i:s", $updatetime)} </li>
                    <!-- Date -->
                    <li><i class="icon-user"></i><a href="#">{$username}</a></li>
                    <!-- Author -->
                    <li><i class="icon-thumbs-up"></i><a href="#"><script type="text/javascript" src="{url('api/hits',array('id'=>$id, 'hits'=>$hits))}"></script></a></li>
                    <!-- Category -->
                </ul>
                <!-- End post-meta -->
                <div class="post-intro">
                    {$content}
                    <!--文章内容分页 begin-->
                    {if $contentpage}
                    <div class="cpage">
                        {loop $contentpage $i=>$u}
                        <a{if $page!=$i} href="{$u}"{/if}>{$i}</a>
                        {/loop}
                    </div>
                    <div class="clear blank10"></div>
                    {/if}
                    <!--文章内容分页 end-->
                    <!--标签关键字 begin-->
                    {if $kws=get_tag_data($keywords)}
                    <div class="articlekey"><strong>TAG：</strong>
                        {loop $kws $t}
                        <a href="{tag_url($t)}">{$t}</a>
                        {/loop}
                    </div>
                    {/if}
                    <!--标签关键字 end-->
                </div>
                <div class="horizontal-line">
                </div>
                <div class="articlebook">
                    {if $prev_page}<p><strong>上一篇：</strong><a href="{$prev_page['url']}">{$prev_page['title']}</a> </p>{/if}
                    {if $next_page}<p><strong>下一篇：</strong><a href="{$next_page['url']}">{$next_page['title']}</a> </p>{/if}
                </div>
                {if plugin('digg')}<div class="clear blank10"></div><script type="text/javascript" src="{url('digg/index/show', array('id'=>$id))}"></script>{/if}
                {if plugin('mood')}<div class="clear blank10"></div><script type="text/javascript" src="{url('mood/index/show', array('id'=>$id))}"></script>{/if}

                {if $commentCfg}
                <!-- 多说评论框 start -->
                <div class="ds-thread" data-thread-key="{$id}" data-title="{$title}" data-url="{$pageurl}"></div>
                <!-- 多说评论框 end -->
                <!-- 多说公共JS代码 start (一个网页只需插入一次) -->
                <script type="text/javascript">
                    var duoshuoQuery = {short_name:"dayruicms"};
                    (function() {
                        var ds = document.createElement('script');
                        ds.type = 'text/javascript';ds.async = true;
                        ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
                        ds.charset = 'UTF-8';
                        (document.getElementsByTagName('head')[0]
                        || document.getElementsByTagName('body')[0]).appendChild(ds);
                    })();
                </script>
                <!-- 多说公共JS代码 end -->
                {/if}


            </div>


        </div>

        <div class="one-fourth sidebar">
            <div class="widget">
                {php $Pcat = getParentData($catid);}
                {if $Pcat}
                <h4 class="widget-title">{$Pcat['catname']}</h4>
                <ul class="sidebar-nav">

                    {php $data = getCatNav($catid);}
                    {loop $data $t}
                    <li><a {if $t['catid']==$catid} style="font-weight: bold"{/if} href="{$t['url']}"><i class="icon-angle-right"></i> {$t['catname']}</a></li>
                    {/loop}
                </ul>
                {else}
                <h4 class="widget-title">{$catname}</h4>
                {/if}
            </div>
            <div class="widget">
                <h4 class="widget-title">热门TAG</h4>
                <ul class="popular-tags">
                    {list action=tag catid=$catid num=20}
                    <li><a href="{$t[url]}"><i class="icon-tag"></i>{$t[name]}</a></li>
                    {/list}
                </ul>
            </div>
        </div>
    </div>
</div>
</div>

{template footer}